package org.gaaidou.ptarmigan.springboot.core.async;


import lombok.Getter;
import lombok.Setter;
import org.gaaidou.ptarmigan.springboot.core.BaseBean;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.Serial;

import static org.gaaidou.ptarmigan.springboot.core.async.TaskProperties.PREFIX;


@Setter
@Getter
@ConfigurationProperties(PREFIX)
public class TaskProperties extends BaseBean {

    public static final String PREFIX = "ptarmigan.thread";

    @Serial
    private static final long serialVersionUID = 1L;

    private String prefix = "ptarmigan-thread-";

    private Integer maxPoolSize;

    private Integer corePoolSize;

    private Integer keepAliveSeconds = 10;

    private int queueCapacity = Integer.MAX_VALUE;

}
